package com.wmz.constant;

/**
 * @author wmz
 * @date 2024/6/30 22:29
 * @description 响应码枚举类
 */
public enum BusinessEnum {
    OPERATION_FAIL(-1, "操作失败"),
    DIRECT_PROXY(305,"指定代理错误"),
    UN_AUTHORIZAION(401, "未授权"),
    REQUIRE_PAYMENT(402,"需要付款"),
    ACCESS_DENY_FAIL(403,"权限不足，请联系管理员"),
    NOT_FOUND(404,"请求资源找不到"),
    SERVER_ERROR(9999, "服务器错误")

    ;
    // 状态码
    private Integer code;
    // 提示信息
    private String desc;

    BusinessEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
